---@class WenheYanbing.Minion
---@field public id integer
---@field public name string
---@field public tier integer
---@field public attack integer
---@field public health integer
---@field public kingdom string
---@field public skills table
---@field public cost integer
---@field public isGolden boolean
---@field public hasTaunt boolean
local Minion = class("WenheYanbing.Minion")

function Minion:initialize(id)
    self.id = id
    self.name = ""
    self.tier = 1
    self.attack = 1
    self.health = 1
    self.kingdom = "qun"
    self.skills = {}
    self.cost = 3
    self.isGolden = false
    self.hasTaunt = false
end

-- 战斗开始时的技能效果（参考象棋的棋子移动规则）
function Minion:onCombatStart(board, position, player)
    for _, skillId in ipairs(self.skills) do
        -- 技能实现
    end
end

-- 亡语效果
function Minion:onDeath(board, position, player)
    for _, skillId in ipairs(self.skills) do
        -- 技能实现
    end
end

return Minion